home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / MacX25 / MacX25 Developer's Kit / MacX25_Interfaces / CIncludes / X25_System.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-21  |  6.0 KB  |  106 lines  |  [TEXT/MPS ]

  1. /* ******************************************************************************************** */
  2. /* *                                                                                           * */
  3. /* *                           X.25 System Wide Definitions                                   * */
  4. /* *                           ----------------------------                                   * */
  5. /* *                                                                                           * */
  6. /* *                                  X25_System.h                                            * */
  7. /* *                                                                                           * */
  8. /* *..........................................................................................* */
  9. /* *                                                                                           * */
  10. /* *     Definitions for Apple's X.25 Product that are "System Wide" in their scope.          * */
  11. /* *     of Interface routines.                                                               * */
  12. /* *                                                                                           * */
  13. /* *                                                                                           * */
  14. /* *------------------------------------------------------------------------------------------* */
  15. /* *                                                                                           * */
  16. /* *                   Copyright © 1988-1990 Apple Computer, Inc.                                * */
  17. /* *                               All Rights Reserved                                          * */
  18. /* *                           Apple Computer Confidential                                       * */
  19. /* *                                                                                           * */
  20. /* *------------------------------------------------------------------------------------------* */
  21. /* *                                                                                           * */
  22. /* *     Revision History:                                                                     * */
  23. /* *                                                                                           * */
  24. /* *     Date       Individual          Changes                                               * */
  25. /* *     .........  ................... ..................................................    * */
  26. /* *                                                                                           * */
  27. /* *     17 Jul 89  Group                Original Version                                       * */
  28. /* *                                                                                           * */
  29. /* *                                                                                           * */
  30. /* ******************************************************************************************** */
  31.     
  32.  
  33. #ifndef     _X25_System_Includes_
  34. #define     _X25_System_Includes_
  35.  
  36. #include    <Types.h>
  37.  
  38.  
  39.  
  40. /* ******************************************************************************************** */
  41. /* *                                                                                           * */
  42. /* *    Definitions for the common message header format                                         * */
  43. /* *                                                                                           * */
  44. /* ******************************************************************************************** */
  45.  
  46.  
  47. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  48. /* +                                                                                           + */
  49. /* +    The message format class definition.                                                  + */
  50. /* +                                                                                             + */
  51. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  52.  
  53. typedef enum {                                   
  54.     
  55.     _X25_login_msg        = 1,
  56.     _X25_admin_msg        = 2,
  57.     _X25_server_msg        = 3
  58.     
  59.     } message_class_def;
  60.  
  61.  
  62. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  63. /* +                                                                                           + */
  64. /* +    The originator / destination definitions.                                             + */
  65. /* +                                                                                             + */
  66. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  67.  
  68. typedef enum {                                   
  69.     
  70.     _X25_server            = 1,
  71.     _X25_server_agent    = 2,
  72.     _X25_admin            = 3,
  73.     _X25_client            = 4
  74.     
  75.     } message_endpoint_def;
  76.  
  77.  
  78. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  79. /* +                                                                                           + */
  80. /* +    The common first portion of all messages.  This structure is included as the first    + */
  81. /* +    item of all message definitions.  This structure may also be overlayed on any message + */
  82. /* +    to allow a decode by message format class.                                            + */
  83. /* +                                                                                           + */
  84. /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  85.  
  86. typedef struct _X25_common_header {
  87.  
  88.     Boolean                        message_rejected        : 1;
  89.     message_class_def            message_class            : 7;
  90.     message_endpoint_def        src_endpoint            : 4;
  91.     message_endpoint_def        dest_endpoint            : 4;
  92.  
  93.     } _X25_common_header;
  94.  
  95.  
  96.  
  97.  
  98. /* ******************************************************************************************** */
  99. /* *                                                                                           * */
  100. /* *    End of File                                                                             * */
  101. /* *                                                                                           * */
  102. /* ******************************************************************************************** */
  103.  
  104. #endif     _X25_System_Includes_
  105.  
  106.